class BaseResponse:
    def __init__(self):
        self.status = True
        self.error = None
        self.data = None

    @property  # 方法变属性
    def dict(self):
        return self.__dict__  # 变为字典


res = BaseResponse()
